package com.hunt.framework.shiro.service;

import com.hunt.common.enums.ShiroConstantsEnum;
import com.hunt.common.utils.StringUtils;
import com.hunt.framework.manager.AsyncManager;
import com.hunt.framework.util.ServletUtils;
import com.hunt.model.entity.SysUser;

/**
 * @program: hunt-lx
 * @description: 登录校验方法
 * @author: Lx
 * @create: 2019-02-01 20:21
 **/
public class SysLoginService
{
    public SysUser login(String username, String password)
    {
        //验证码校验
        if (!StringUtils.isEmpty(ServletUtils.getRequest().getAttribute(ShiroConstantsEnum.CURRENT_CAPTCHA.getInfo())))
        {
            AsyncManager.me().execute(AsyncFa);
        }
    }
}
